package com.douqu.game.core.e;

public enum E_ServerTaskType implements BaseEnum {
	
	MAINTAIN(1, "维护"),
	OPEN(2, "开放")
	;
	
	int code;
	
	String msg;
	
	private E_ServerTaskType(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	@Override
	public int getCode() {
		return code;
	}

	@Override
	public String getMsg() {
		return msg;
	}
	
	public static E_ServerTaskType forNumber(int code)
	{
		for(E_ServerTaskType item : values())
		{
			if(item.getCode() == code)
				return item;
		}
		return null;
	}

}
